package com.newblog.dao;

import java.util.List;

import com.newblog.model.User;

public interface UserDAO {
	public int addUser(User u) throws UserAlreadyException;
	
	public boolean deleteUser(User u);
    
	public boolean updateUser(User u);
	
	public boolean changePassword(User u);
	
	public User QueryByID(User u);
	
	public User QueryByName(User u);
	
    public List getUserList();
    
    public User Login(User u);
    
    public boolean ActivateUser(User u);
}
